package D1;

import java.util.Scanner;

public class T1 {
    public static void main(String[] args) {
        System.out.println("请输入月份:");
        Scanner sc =new Scanner(System.in);
        int mouth =sc.nextInt();
        System.out.println("总数为"+"\n"+f(mouth));
    }

    public static int f(int mouth){
        if(mouth !=1 && mouth!=2){
            if(mouth!=3){
                return f(mouth-1)+f(mouth-2);
            }
            return 2;
        }
        return 1;
    }
}
